class PastasController < ApplicationController
  
  before_filter :authenticate 
  add_breadcrumb "Principal", :root_path
  add_breadcrumb "Users", :users_path
  
  def new
  end

  def create
  end

  def destroy
  end
  
  def index
    
  end
  
  protected
  def authenticate
  
  if session[:tipo].upcase != 'PROF'
    redirect_to livros_path
  end
  
  if session[:logged]
    true
  else 
    redirect_to new_session_path
  end
  
  end

end
